import request from '@/utils/request'

// 查询我的工时列表
export function listMyWorkingHours(query) {
  return request({
    url: '/gs/myWorkingHours/list',
    method: 'get',
    params: query
  })
}

// 查询我的工时详细
export function getMyWorkingHours(id) {
  return request({
    url: '/gs/myWorkingHours/' + id,
    method: 'get'
  })
}

// 新增我的工时
export function addMyWorkingHours(data) {
  return request({
    url: '/gs/myWorkingHours',
    method: 'post',
    data: data
  })
}

// 修改我的工时
export function updateMyWorkingHours(data) {
  return request({
    url: '/gs/myWorkingHours',
    method: 'put',
    data: data
  })
}

// 删除我的工时
export function delMyWorkingHours(id) {
  return request({
    url: '/gs/myWorkingHours/' + id,
    method: 'delete'
  })
}
// 我的工时提报审核
export function auditMyWorkingHours(id) {
  return request({
    url: '/gs/myWorkingHours/auditMyWorkingHours/' + id,
    method: 'post'
  })
}
